<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>IVF-HNSW: Parser.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IVF-HNSW
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Parser.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef IVF_HNSW_LIB_PARSER_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define IVF_HNSW_LIB_PARSER_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;cstring&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//==============</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// Parser Class</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//==============</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="structParser.html">   10</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structParser.html">Parser</a></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;{</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structParser.html#ad01d81b83b033c40a40a3ed3fb7bb9a8">   12</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#ad01d81b83b033c40a40a3ed3fb7bb9a8">cmd</a>;        </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    <span class="comment">//=================</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="comment">// HNSW parameters</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    <span class="comment">//=================</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="structParser.html#a380fee2b7e6709e6db7e2a2fa87ed834">   17</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#a380fee2b7e6709e6db7e2a2fa87ed834">M</a>;               </div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="structParser.html#aca3a0b1154c7f8e2de61d31a24d0371a">   18</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#aca3a0b1154c7f8e2de61d31a24d0371a">efConstruction</a>;  </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <span class="comment">//=================</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="comment">// Data parameters</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="comment">//=================</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="structParser.html#a55514f0ecf98454bb1d6ae607adc3c9c">   23</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#a55514f0ecf98454bb1d6ae607adc3c9c">nb</a>;             </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structParser.html#ae7fdd2dbc91e4cd331169732a4074b68">   24</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#ae7fdd2dbc91e4cd331169732a4074b68">nt</a>;             </div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="structParser.html#af93a3b34f48f02ead5f07d7655b2303a">   25</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#af93a3b34f48f02ead5f07d7655b2303a">nsubt</a>;          </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="structParser.html#a0bfc42c41837d29083aab4a09177a60f">   26</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#a0bfc42c41837d29083aab4a09177a60f">nc</a>;             </div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="structParser.html#a582526c69eff5da2905137df8670518a">   27</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#a582526c69eff5da2905137df8670518a">nsubc</a>;          </div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structParser.html#ade398f56b9aca70d4d50284419086a8b">   28</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#ade398f56b9aca70d4d50284419086a8b">nq</a>;             </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structParser.html#ab2bf1fd845d298f17bd2d28cbf92f008">   29</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#ab2bf1fd845d298f17bd2d28cbf92f008">ngt</a>;            </div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structParser.html#aa1684f1d53e314763e3a53b5475116f7">   30</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#aa1684f1d53e314763e3a53b5475116f7">d</a>;              </div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="comment">//=================</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="comment">// PQ parameters</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="comment">//=================</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structParser.html#afd97ef6a4d5ab0a520efc110664fdac1">   35</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#afd97ef6a4d5ab0a520efc110664fdac1">code_size</a>;      </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="structParser.html#aaa11d4d5a9838f80e76d1794c8dcdf39">   36</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structParser.html#aaa11d4d5a9838f80e76d1794c8dcdf39">do_opq</a>;           </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="comment">//===================</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="comment">// Search parameters</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="comment">//===================</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structParser.html#a5babd7b2f32c7f5cf8414d6d260ecaa3">   41</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#a5babd7b2f32c7f5cf8414d6d260ecaa3">k</a>;              </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structParser.html#a0bdf9568230f0e8418b167dd0a47a6e2">   42</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#a0bdf9568230f0e8418b167dd0a47a6e2">nprobe</a>;         </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structParser.html#a6203017721493e2bd03ac2d1eb05babe">   43</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#a6203017721493e2bd03ac2d1eb05babe">max_codes</a>;      </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structParser.html#a025a96c0db78e12ab1f7d3b8933090c2">   44</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structParser.html#a025a96c0db78e12ab1f7d3b8933090c2">efSearch</a>;       </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structParser.html#af7be684475775bd7e35b2757f4746be7">   45</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structParser.html#af7be684475775bd7e35b2757f4746be7">do_pruning</a>;       </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="comment">//=======</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="comment">// Paths</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="comment">//=======</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structParser.html#a1f64ee251c6919b7d82ef64c2ef2c83f">   50</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#a1f64ee251c6919b7d82ef64c2ef2c83f">path_base</a>;             </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structParser.html#ab847c31295153b1ad36c953536511378">   51</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#ab847c31295153b1ad36c953536511378">path_learn</a>;            </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structParser.html#a0da8dea10a581a378969b4ea67d6e829">   52</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#a0da8dea10a581a378969b4ea67d6e829">path_q</a>;                </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structParser.html#acaf7ff8367ab44095a4d6216d47f852a">   53</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#acaf7ff8367ab44095a4d6216d47f852a">path_gt</a>;               </div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structParser.html#a95e9ba0d3fd072c14ffa7072e6029b71">   54</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#a95e9ba0d3fd072c14ffa7072e6029b71">path_centroids</a>;        </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structParser.html#ae82ca535d6cdf142c6110ebd2482ca90">   56</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#ae82ca535d6cdf142c6110ebd2482ca90">path_precomputed_idxs</a>; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structParser.html#adee3f891946562549154595c1b2f3457">   58</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#adee3f891946562549154595c1b2f3457">path_info</a>;             </div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structParser.html#a8537beb966453cb27d4e4e91e95c7584">   59</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#a8537beb966453cb27d4e4e91e95c7584">path_edges</a>;            </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structParser.html#a3c3a7cf855c47923dd8efc488f6da329">   61</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#a3c3a7cf855c47923dd8efc488f6da329">path_pq</a>;               </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structParser.html#aa13635fd36a285fe9ca3347847cbb8b6">   62</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#aa13635fd36a285fe9ca3347847cbb8b6">path_opq_matrix</a>;       </div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structParser.html#abc6108291287f69658d20b39d7519989">   63</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#abc6108291287f69658d20b39d7519989">path_norm_pq</a>;          </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structParser.html#a41b91f5014c7436849e7adb2feeeb964">   64</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structParser.html#a41b91f5014c7436849e7adb2feeeb964">path_index</a>;            </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <a class="code" href="structParser.html">Parser</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv)</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    {</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <a class="code" href="structParser.html#ad01d81b83b033c40a40a3ed3fb7bb9a8">cmd</a> = argv[0];</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">if</span> (argc == 1)</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            usage();</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 1 ; i &lt; argc; i++) {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            <span class="keywordtype">char</span> *a = argv[i];</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-h&quot;</span>) || !strcmp (a, <span class="stringliteral">&quot;--help&quot;</span>))</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                usage();</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;            <span class="keywordflow">if</span> (i == argc-1)</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;            <span class="comment">//=================</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;            <span class="comment">// HNSW parameters</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            <span class="comment">//=================</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;            <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-M&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#a380fee2b7e6709e6db7e2a2fa87ed834">M</a>);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-efConstruction&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#aca3a0b1154c7f8e2de61d31a24d0371a">efConstruction</a>);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;            <span class="comment">//=================</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;            <span class="comment">// Data parameters</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            <span class="comment">//=================</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-nb&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#a55514f0ecf98454bb1d6ae607adc3c9c">nb</a>);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-nc&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#a0bfc42c41837d29083aab4a09177a60f">nc</a>);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-nsubc&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#a582526c69eff5da2905137df8670518a">nsubc</a>);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-nt&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#ae7fdd2dbc91e4cd331169732a4074b68">nt</a>);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-nsubt&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#af93a3b34f48f02ead5f07d7655b2303a">nsubt</a>);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-nq&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#ade398f56b9aca70d4d50284419086a8b">nq</a>);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-ngt&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#ab2bf1fd845d298f17bd2d28cbf92f008">ngt</a>);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-d&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#aa1684f1d53e314763e3a53b5475116f7">d</a>);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            <span class="comment">//===============</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            <span class="comment">// PQ parameters</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;            <span class="comment">//===============</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-code_size&quot;</span>))sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#afd97ef6a4d5ab0a520efc110664fdac1">code_size</a>);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-opq&quot;</span>)) <a class="code" href="structParser.html#aaa11d4d5a9838f80e76d1794c8dcdf39">do_opq</a> = !strcmp(argv[++i], <span class="stringliteral">&quot;on&quot;</span>);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            <span class="comment">//===================</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;            <span class="comment">// Search parameters</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            <span class="comment">//===================</span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-k&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#a5babd7b2f32c7f5cf8414d6d260ecaa3">k</a>);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-nprobe&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#a0bdf9568230f0e8418b167dd0a47a6e2">nprobe</a>);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-max_codes&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#a6203017721493e2bd03ac2d1eb05babe">max_codes</a>);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-efSearch&quot;</span>)) sscanf(argv[++i], <span class="stringliteral">&quot;%zu&quot;</span>, &amp;<a class="code" href="structParser.html#a025a96c0db78e12ab1f7d3b8933090c2">efSearch</a>);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-pruning&quot;</span>)) <a class="code" href="structParser.html#af7be684475775bd7e35b2757f4746be7">do_pruning</a> = !strcmp(argv[++i], <span class="stringliteral">&quot;on&quot;</span>);</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            <span class="comment">//=======</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;            <span class="comment">// Paths</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;            <span class="comment">//=======</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_base&quot;</span>)) <a class="code" href="structParser.html#a1f64ee251c6919b7d82ef64c2ef2c83f">path_base</a> = argv[++i];</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_learn&quot;</span>)) <a class="code" href="structParser.html#ab847c31295153b1ad36c953536511378">path_learn</a> = argv[++i];</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_q&quot;</span>)) <a class="code" href="structParser.html#a0da8dea10a581a378969b4ea67d6e829">path_q</a> = argv[++i];</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_gt&quot;</span>)) <a class="code" href="structParser.html#acaf7ff8367ab44095a4d6216d47f852a">path_gt</a> = argv[++i];</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_centroids&quot;</span>)) <a class="code" href="structParser.html#a95e9ba0d3fd072c14ffa7072e6029b71">path_centroids</a> = argv[++i];</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_precomputed_idx&quot;</span>)) <a class="code" href="structParser.html#ae82ca535d6cdf142c6110ebd2482ca90">path_precomputed_idxs</a> = argv[++i];</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_info&quot;</span>)) <a class="code" href="structParser.html#adee3f891946562549154595c1b2f3457">path_info</a> = argv[++i];</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_edges&quot;</span>)) <a class="code" href="structParser.html#a8537beb966453cb27d4e4e91e95c7584">path_edges</a> = argv[++i];</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_pq&quot;</span>)) <a class="code" href="structParser.html#a3c3a7cf855c47923dd8efc488f6da329">path_pq</a> = argv[++i];</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_opq_matrix&quot;</span>)) <a class="code" href="structParser.html#aa13635fd36a285fe9ca3347847cbb8b6">path_opq_matrix</a> = argv[++i];</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_norm_pq&quot;</span>)) <a class="code" href="structParser.html#abc6108291287f69658d20b39d7519989">path_norm_pq</a> = argv[++i];</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp (a, <span class="stringliteral">&quot;-path_index&quot;</span>)) <a class="code" href="structParser.html#a41b91f5014c7436849e7adb2feeeb964">path_index</a> = argv[++i];</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        }</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    }</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordtype">void</span> usage()</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    {</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        printf (<span class="stringliteral">&quot;Usage: %s [options]\n&quot;</span>, <a class="code" href="structParser.html#ad01d81b83b033c40a40a3ed3fb7bb9a8">cmd</a>);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        printf (<span class="stringliteral">&quot;###################\n&quot;</span></div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                <span class="stringliteral">&quot;# HNSW Parameters #\n&quot;</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                <span class="stringliteral">&quot;###################\n&quot;</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                <span class="stringliteral">&quot;    -M #                  Min number of edges per point\n&quot;</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;                <span class="stringliteral">&quot;    -efConstruction #     Max number of candidate vertices in priority queue to observe during construction\n&quot;</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;                <span class="stringliteral">&quot;###################\n&quot;</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                <span class="stringliteral">&quot;# Data Parameters #\n&quot;</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;                <span class="stringliteral">&quot;###################\n&quot;</span></div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                <span class="stringliteral">&quot;    -nb #                 Number of base vectors\n&quot;</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                <span class="stringliteral">&quot;    -nt #                 Number of learn vectors\n&quot;</span></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                <span class="stringliteral">&quot;    -nsubt #              Number of learn vectors to train (random subset of the learn set)\n&quot;</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                <span class="stringliteral">&quot;    -nc #                 Number of centroids for HNSW quantizer\n&quot;</span></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                <span class="stringliteral">&quot;    -nsubc #              Number of subcentroids per group\n&quot;</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                <span class="stringliteral">&quot;    -nq #                 Number of queries\n&quot;</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;                <span class="stringliteral">&quot;    -ngt #                Number of groundtruth neighbours per query\n&quot;</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                <span class="stringliteral">&quot;    -d #                  Vector dimension\n&quot;</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                <span class="stringliteral">&quot;#################\n&quot;</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                <span class="stringliteral">&quot;# PQ Parameters #\n&quot;</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                <span class="stringliteral">&quot;#################\n&quot;</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;                <span class="stringliteral">&quot;    -code_size #          Code size per vector in bytes\n&quot;</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;                <span class="stringliteral">&quot;    -opq on/off           Turn on/off OPQ compression\n&quot;</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;                <span class="stringliteral">&quot;####################\n&quot;</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                <span class="stringliteral">&quot;# Search Parameters #\n&quot;</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;                <span class="stringliteral">&quot;#####################\n&quot;</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;                <span class="stringliteral">&quot;    -k #                  Number of the closest vertices to search\n&quot;</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                <span class="stringliteral">&quot;    -nprobe #             Number of probes at query time\n&quot;</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;                <span class="stringliteral">&quot;    -max_codes #          Max number of codes to visit to do a query\n&quot;</span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                <span class="stringliteral">&quot;    -efSearch #           Max number of candidate vertices in priority queue to observe during searching\n&quot;</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                <span class="stringliteral">&quot;    -pruning on/off       Turn on/off pruning in the grouping scheme\n&quot;</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                <span class="stringliteral">&quot;#########\n&quot;</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;                <span class="stringliteral">&quot;# Paths #\n&quot;</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                <span class="stringliteral">&quot;#########\n&quot;</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;                <span class="stringliteral">&quot;    -path_base filename               Path to a base set\n&quot;</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                <span class="stringliteral">&quot;    -path_learn filename              Path to a learn set\n&quot;</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                <span class="stringliteral">&quot;    -path_q filename                  Path to queries\n&quot;</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                <span class="stringliteral">&quot;    -path_gt filename                 Path to groundtruth\n&quot;</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                <span class="stringliteral">&quot;    -path_centroids filename          Path to coarse centroids\n&quot;</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;                <span class="stringliteral">&quot;                            \n&quot;</span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;                <span class="stringliteral">&quot;    -path_precomputed_idxs filename   Path to coarse centroid indices for base points\n&quot;</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                <span class="stringliteral">&quot;                       \n&quot;</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                <span class="stringliteral">&quot;    -path_info filename               Path to parameters of HNSW graph\n&quot;</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                <span class="stringliteral">&quot;    -path_edges filename              Path to edges of HNSW graph\n&quot;</span></div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                <span class="stringliteral">&quot;                        \n&quot;</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                <span class="stringliteral">&quot;    -path_pq filename                 Path to the product quantizer for residuals\n&quot;</span></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;                <span class="stringliteral">&quot;    -path_opq_matrix filename         Path to the rotation matrix for OPQ compression\n&quot;</span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                <span class="stringliteral">&quot;    -path_norm_pq filename            Path to the product quantizer for norms of reconstructed base points\n&quot;</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                <span class="stringliteral">&quot;    &quot;</span></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;                <span class="stringliteral">&quot;    -path_index filename              Path to the constructed index\n&quot;</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        );</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        exit(0);</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    }</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;};</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="preprocessor">#endif //IVF_HNSW_LIB_PARSER_H</span></div>
<div class="ttc" id="structParser_html_af7be684475775bd7e35b2757f4746be7"><div class="ttname"><a href="structParser.html#af7be684475775bd7e35b2757f4746be7">Parser::do_pruning</a></div><div class="ttdeci">bool do_pruning</div><div class="ttdoc">Turn on/off pruning in the grouping scheme. </div><div class="ttdef"><b>Definition:</b> Parser.h:45</div></div>
<div class="ttc" id="structParser_html_a1f64ee251c6919b7d82ef64c2ef2c83f"><div class="ttname"><a href="structParser.html#a1f64ee251c6919b7d82ef64c2ef2c83f">Parser::path_base</a></div><div class="ttdeci">const char * path_base</div><div class="ttdoc">Path to a base set. </div><div class="ttdef"><b>Definition:</b> Parser.h:50</div></div>
<div class="ttc" id="structParser_html_a0bfc42c41837d29083aab4a09177a60f"><div class="ttname"><a href="structParser.html#a0bfc42c41837d29083aab4a09177a60f">Parser::nc</a></div><div class="ttdeci">size_t nc</div><div class="ttdoc">Number of centroids for HNSW quantizer. </div><div class="ttdef"><b>Definition:</b> Parser.h:26</div></div>
<div class="ttc" id="structParser_html_a025a96c0db78e12ab1f7d3b8933090c2"><div class="ttname"><a href="structParser.html#a025a96c0db78e12ab1f7d3b8933090c2">Parser::efSearch</a></div><div class="ttdeci">size_t efSearch</div><div class="ttdoc">Max number of candidate vertices in priority queue to observe during searching. </div><div class="ttdef"><b>Definition:</b> Parser.h:44</div></div>
<div class="ttc" id="structParser_html_a55514f0ecf98454bb1d6ae607adc3c9c"><div class="ttname"><a href="structParser.html#a55514f0ecf98454bb1d6ae607adc3c9c">Parser::nb</a></div><div class="ttdeci">size_t nb</div><div class="ttdoc">Number of base vectors. </div><div class="ttdef"><b>Definition:</b> Parser.h:23</div></div>
<div class="ttc" id="structParser_html_a582526c69eff5da2905137df8670518a"><div class="ttname"><a href="structParser.html#a582526c69eff5da2905137df8670518a">Parser::nsubc</a></div><div class="ttdeci">size_t nsubc</div><div class="ttdoc">Number of subcentroids per group. </div><div class="ttdef"><b>Definition:</b> Parser.h:27</div></div>
<div class="ttc" id="structParser_html_afd97ef6a4d5ab0a520efc110664fdac1"><div class="ttname"><a href="structParser.html#afd97ef6a4d5ab0a520efc110664fdac1">Parser::code_size</a></div><div class="ttdeci">size_t code_size</div><div class="ttdoc">Code size per vector in bytes. </div><div class="ttdef"><b>Definition:</b> Parser.h:35</div></div>
<div class="ttc" id="structParser_html"><div class="ttname"><a href="structParser.html">Parser</a></div><div class="ttdef"><b>Definition:</b> Parser.h:10</div></div>
<div class="ttc" id="structParser_html_aa13635fd36a285fe9ca3347847cbb8b6"><div class="ttname"><a href="structParser.html#aa13635fd36a285fe9ca3347847cbb8b6">Parser::path_opq_matrix</a></div><div class="ttdeci">const char * path_opq_matrix</div><div class="ttdoc">Path to OPQ rotation matrix for OPQ fine encoding. </div><div class="ttdef"><b>Definition:</b> Parser.h:62</div></div>
<div class="ttc" id="structParser_html_ab2bf1fd845d298f17bd2d28cbf92f008"><div class="ttname"><a href="structParser.html#ab2bf1fd845d298f17bd2d28cbf92f008">Parser::ngt</a></div><div class="ttdeci">size_t ngt</div><div class="ttdoc">Number of groundtruth neighbours per query. </div><div class="ttdef"><b>Definition:</b> Parser.h:29</div></div>
<div class="ttc" id="structParser_html_acaf7ff8367ab44095a4d6216d47f852a"><div class="ttname"><a href="structParser.html#acaf7ff8367ab44095a4d6216d47f852a">Parser::path_gt</a></div><div class="ttdeci">const char * path_gt</div><div class="ttdoc">Path to groundtruth. </div><div class="ttdef"><b>Definition:</b> Parser.h:53</div></div>
<div class="ttc" id="structParser_html_ae82ca535d6cdf142c6110ebd2482ca90"><div class="ttname"><a href="structParser.html#ae82ca535d6cdf142c6110ebd2482ca90">Parser::path_precomputed_idxs</a></div><div class="ttdeci">const char * path_precomputed_idxs</div><div class="ttdoc">Path to coarse centroid indices for base points. </div><div class="ttdef"><b>Definition:</b> Parser.h:56</div></div>
<div class="ttc" id="structParser_html_ae7fdd2dbc91e4cd331169732a4074b68"><div class="ttname"><a href="structParser.html#ae7fdd2dbc91e4cd331169732a4074b68">Parser::nt</a></div><div class="ttdeci">size_t nt</div><div class="ttdoc">Number of learn vectors. </div><div class="ttdef"><b>Definition:</b> Parser.h:24</div></div>
<div class="ttc" id="structParser_html_aaa11d4d5a9838f80e76d1794c8dcdf39"><div class="ttname"><a href="structParser.html#aaa11d4d5a9838f80e76d1794c8dcdf39">Parser::do_opq</a></div><div class="ttdeci">bool do_opq</div><div class="ttdoc">Turn on/off OPQ fine encoding. </div><div class="ttdef"><b>Definition:</b> Parser.h:36</div></div>
<div class="ttc" id="structParser_html_a8537beb966453cb27d4e4e91e95c7584"><div class="ttname"><a href="structParser.html#a8537beb966453cb27d4e4e91e95c7584">Parser::path_edges</a></div><div class="ttdeci">const char * path_edges</div><div class="ttdoc">Path to edges of HNSW graph. </div><div class="ttdef"><b>Definition:</b> Parser.h:59</div></div>
<div class="ttc" id="structParser_html_a0bdf9568230f0e8418b167dd0a47a6e2"><div class="ttname"><a href="structParser.html#a0bdf9568230f0e8418b167dd0a47a6e2">Parser::nprobe</a></div><div class="ttdeci">size_t nprobe</div><div class="ttdoc">Number of probes at query time. </div><div class="ttdef"><b>Definition:</b> Parser.h:42</div></div>
<div class="ttc" id="structParser_html_a6203017721493e2bd03ac2d1eb05babe"><div class="ttname"><a href="structParser.html#a6203017721493e2bd03ac2d1eb05babe">Parser::max_codes</a></div><div class="ttdeci">size_t max_codes</div><div class="ttdoc">Max number of codes to visit to do a query. </div><div class="ttdef"><b>Definition:</b> Parser.h:43</div></div>
<div class="ttc" id="structParser_html_aa1684f1d53e314763e3a53b5475116f7"><div class="ttname"><a href="structParser.html#aa1684f1d53e314763e3a53b5475116f7">Parser::d</a></div><div class="ttdeci">size_t d</div><div class="ttdoc">Vector dimension. </div><div class="ttdef"><b>Definition:</b> Parser.h:30</div></div>
<div class="ttc" id="structParser_html_aca3a0b1154c7f8e2de61d31a24d0371a"><div class="ttname"><a href="structParser.html#aca3a0b1154c7f8e2de61d31a24d0371a">Parser::efConstruction</a></div><div class="ttdeci">size_t efConstruction</div><div class="ttdoc">Max number of candidate vertices in priority queue to observe during construction. </div><div class="ttdef"><b>Definition:</b> Parser.h:18</div></div>
<div class="ttc" id="structParser_html_a3c3a7cf855c47923dd8efc488f6da329"><div class="ttname"><a href="structParser.html#a3c3a7cf855c47923dd8efc488f6da329">Parser::path_pq</a></div><div class="ttdeci">const char * path_pq</div><div class="ttdoc">Path to the product quantizer for residuals. </div><div class="ttdef"><b>Definition:</b> Parser.h:61</div></div>
<div class="ttc" id="structParser_html_a5babd7b2f32c7f5cf8414d6d260ecaa3"><div class="ttname"><a href="structParser.html#a5babd7b2f32c7f5cf8414d6d260ecaa3">Parser::k</a></div><div class="ttdeci">size_t k</div><div class="ttdoc">Number of the closest vertices to search. </div><div class="ttdef"><b>Definition:</b> Parser.h:41</div></div>
<div class="ttc" id="structParser_html_abc6108291287f69658d20b39d7519989"><div class="ttname"><a href="structParser.html#abc6108291287f69658d20b39d7519989">Parser::path_norm_pq</a></div><div class="ttdeci">const char * path_norm_pq</div><div class="ttdoc">Path to the product quantizer for norms of reconstructed base points. </div><div class="ttdef"><b>Definition:</b> Parser.h:63</div></div>
<div class="ttc" id="structParser_html_adee3f891946562549154595c1b2f3457"><div class="ttname"><a href="structParser.html#adee3f891946562549154595c1b2f3457">Parser::path_info</a></div><div class="ttdeci">const char * path_info</div><div class="ttdoc">Path to parameters of HNSW graph. </div><div class="ttdef"><b>Definition:</b> Parser.h:58</div></div>
<div class="ttc" id="structParser_html_ab847c31295153b1ad36c953536511378"><div class="ttname"><a href="structParser.html#ab847c31295153b1ad36c953536511378">Parser::path_learn</a></div><div class="ttdeci">const char * path_learn</div><div class="ttdoc">Path to a learn set. </div><div class="ttdef"><b>Definition:</b> Parser.h:51</div></div>
<div class="ttc" id="structParser_html_a95e9ba0d3fd072c14ffa7072e6029b71"><div class="ttname"><a href="structParser.html#a95e9ba0d3fd072c14ffa7072e6029b71">Parser::path_centroids</a></div><div class="ttdeci">const char * path_centroids</div><div class="ttdoc">Path to coarse centroids. </div><div class="ttdef"><b>Definition:</b> Parser.h:54</div></div>
<div class="ttc" id="structParser_html_a0da8dea10a581a378969b4ea67d6e829"><div class="ttname"><a href="structParser.html#a0da8dea10a581a378969b4ea67d6e829">Parser::path_q</a></div><div class="ttdeci">const char * path_q</div><div class="ttdoc">Path to queries. </div><div class="ttdef"><b>Definition:</b> Parser.h:52</div></div>
<div class="ttc" id="structParser_html_af93a3b34f48f02ead5f07d7655b2303a"><div class="ttname"><a href="structParser.html#af93a3b34f48f02ead5f07d7655b2303a">Parser::nsubt</a></div><div class="ttdeci">size_t nsubt</div><div class="ttdoc">Number of learn vectors to train (random subset of the learn set) </div><div class="ttdef"><b>Definition:</b> Parser.h:25</div></div>
<div class="ttc" id="structParser_html_a380fee2b7e6709e6db7e2a2fa87ed834"><div class="ttname"><a href="structParser.html#a380fee2b7e6709e6db7e2a2fa87ed834">Parser::M</a></div><div class="ttdeci">size_t M</div><div class="ttdoc">Min number of edges per point. </div><div class="ttdef"><b>Definition:</b> Parser.h:17</div></div>
<div class="ttc" id="structParser_html_a41b91f5014c7436849e7adb2feeeb964"><div class="ttname"><a href="structParser.html#a41b91f5014c7436849e7adb2feeeb964">Parser::path_index</a></div><div class="ttdeci">const char * path_index</div><div class="ttdoc">Path to the constructed index. </div><div class="ttdef"><b>Definition:</b> Parser.h:64</div></div>
<div class="ttc" id="structParser_html_ad01d81b83b033c40a40a3ed3fb7bb9a8"><div class="ttname"><a href="structParser.html#ad01d81b83b033c40a40a3ed3fb7bb9a8">Parser::cmd</a></div><div class="ttdeci">const char * cmd</div><div class="ttdoc">main command - argv[0] </div><div class="ttdef"><b>Definition:</b> Parser.h:12</div></div>
<div class="ttc" id="structParser_html_ade398f56b9aca70d4d50284419086a8b"><div class="ttname"><a href="structParser.html#ade398f56b9aca70d4d50284419086a8b">Parser::nq</a></div><div class="ttdeci">size_t nq</div><div class="ttdoc">Number of queries. </div><div class="ttdef"><b>Definition:</b> Parser.h:28</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Feb 8 2018 16:55:50 for IVF-HNSW by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
